function openEditModal(name, username, pwd, type, email, phone) {
    document.getElementById('editName').value = name;
    document.getElementById('editUsername').value = username;
    document.getElementById('editPwd').value = pwd;
    document.getElementById('editType').value = type;
    document.getElementById('editEmail').value = email;
    document.getElementById('editPhone').value = phone;
    document.getElementById('editModal').classList.remove('hidden');
}

function closeEditModal() {
    document.getElementById('editModal').classList.add('hidden');
}